#include "client.h"
#include <chrono>
#include <thread>

int main() {
    ClientEndpoint clientEndpoint("tcp://localhost:5557");

    int request_count = 0;
    while (true) {
        clientEndpoint.sendRequest("Request " + std::to_string(++request_count));
        clientEndpoint.receiveReply();
        std::this_thread::sleep_for(std::chrono::seconds(1));  // 模拟请求间隔
    }

    return 0;
}